package com.bsj.travel.def.common.DTO.web.openApi;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author LiJiaXin
 * @version 1.0.0
 * @description CommonParamDTO
 * @time 2024/4/7 15:16
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommonParamDTO {

    /**
     * 时间戳
     */
    @NotNull(message = "时间戳不能为空")
    private Long timestamp;

    /**
     * 签名
     */
    @NotBlank(message = "签名不能为空")
    private String sign;

    /**
     * appId
     */
    @NotBlank(message = "appId不能为空")
    private String appId;

    /**
     * 随机字符串
     */
    @NotBlank(message = "随机字符串不能为空")
    private String signatureNonce;

}
